package com.zetor.ms.repository.entity.spd;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@TableName("PHA_DS_DRUG_BOOK")
public class PhaDsDrugBookEntity implements Serializable {

    /** 版本号 */
    private static final long serialVersionUID = 6305366135128377201L;

    /** 主键 */
    private String phaDsDrugBookId;

    /** 医院ID */
    private String hospitalId;

    /** 院区ID */
    private String compoundId;

    /** 订单流水号 */
    private String bookSn;

    /** 医嘱执行流水号 */
    private String execSn;

    /** 处方内顺序号 */
    private BigDecimal sortNo;

    /** 发药药房编码 */
    private String drugDept;

    /** 库存明细ID */
    private String stockDetailId;

    /** 药品编码 */
    private String drugCode;

    /** 零售价 */
    private BigDecimal unitPrice;

    /** 预扣库存数量(基本单位) */
    private BigDecimal bookQty;

    /** 预扣标志，01申请02预扣(01记录库存明细ID没有预扣数量,02记录数量) */
    private String bookClass;

    /** 备注 */
    private String remark;

    /** 扩展字段1 */
    @TableField("EXTEND_1")
    private String extend1;

    /** 扩展字段2 */
    @TableField("EXTEND_2")
    private String extend2;

    /** 扩展字段2 */
    @TableField("EXTEND_3")
    private String extend3;

    /** 操作员编码 */
    private String operCode;

    /** 操作时间 */
    private Date operDatetime;

    /** 基药科室编码 */
    private String storeDeptCode;

    /** 预扣基药数量 */
    @TableField("BASEMEDICINE_QTY")
    private BigDecimal baseMedicineQty;

    private BigDecimal retailUnitPrice;

	/** 调价前购入价 */
	private BigDecimal prePurPrice;

	/** 调价后购入价 */
	private BigDecimal purPrice;

	private String adjNo;

	private String adjdetId;
	//V1合V3end
    public String getPhaDsDrugBookId() {
		return phaDsDrugBookId;
	}

	public void setPhaDsDrugBookId(String phaDsDrugBookId) {
		this.phaDsDrugBookId = phaDsDrugBookId;
	}

	/**
     * 获取医院ID
     *
     * @return 医院ID
     */
    public String getHospitalId() {
        return this.hospitalId;
    }

    /**
     * 设置医院ID
     *
     * @param hospitalId
     *          医院ID
     */
    public void setHospitalId(String hospitalId) {
        this.hospitalId = hospitalId;
    }

    /**
     * 获取院区ID
     *
     * @return 院区ID
     */
    public String getCompoundId() {
        return this.compoundId;
    }

    /**
     * 设置院区ID
     *
     * @param compoundId
     *          院区ID
     */
    public void setCompoundId(String compoundId) {
        this.compoundId = compoundId;
    }

    /**
     * 获取订单流水号
     *
     * @return 订单流水号
     */
    public String getBookSn() {
        return this.bookSn;
    }

    /**
     * 设置订单流水号
     *
     * @param bookSn
     *          订单流水号
     */
    public void setBookSn(String bookSn) {
        this.bookSn = bookSn;
    }

    /**
     * 获取医嘱执行流水号
     *
     * @return 医嘱执行流水号
     */
    public String getExecSn() {
        return this.execSn;
    }

    /**
     * 设置医嘱执行流水号
     *
     * @param execSn
     *          医嘱执行流水号
     */
    public void setExecSn(String execSn) {
        this.execSn = execSn;
    }

    /**
     * 获取处方内顺序号
     *
     * @return 处方内顺序号
     */
    public BigDecimal getSortNo() {
		return sortNo;
	}

    /**
     * 设置处方内顺序号
     *
     * @param sortNo
     *          处方内顺序号
     */
	public void setSortNo(BigDecimal sortNo) {
		this.sortNo = sortNo;
	}

	/**
     * 获取发药药房编码
     *
     * @return 发药药房编码
     */
    public String getDrugDept() {
        return this.drugDept;
    }

    /**
     * 设置发药药房编码
     *
     * @param drugDept
     *          发药药房编码
     */
    public void setDrugDept(String drugDept) {
        this.drugDept = drugDept;
    }

    /**
     * 获取库存明细ID
     *
     * @return 库存明细ID
     */
    public String getStockDetailId() {
        return this.stockDetailId;
    }

    /**
     * 设置库存明细ID
     *
     * @param stockDetailId
     *          库存明细ID
     */
    public void setStockDetailId(String stockDetailId) {
        this.stockDetailId = stockDetailId;
    }

    /**
     * 获取药品编码
     *
     * @return 药品编码
     */
    public String getDrugCode() {
        return this.drugCode;
    }

    /**
     * 设置药品编码
     *
     * @param drugCode
     *          药品编码
     */
    public void setDrugCode(String drugCode) {
        this.drugCode = drugCode;
    }

    /**
     * 获取零售价
     *
     * @return 零售价
     */
    public BigDecimal getUnitPrice() {
        return this.unitPrice;
    }

    /**
     * 设置零售价
     *
     * @param unitPrice
     *          零售价
     */
    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    /**
     * 获取预扣库存数量(基本单位)
     *
     * @return 预扣库存数量(基本单位)
     */
    public BigDecimal getBookQty() {
        return this.bookQty;
    }

    /**
     * 设置预扣库存数量(基本单位)
     *
     * @param bookQty
     *          预扣库存数量(基本单位)
     */
    public void setBookQty(BigDecimal bookQty) {
        this.bookQty = bookQty;
    }

    /**
     * 获取预扣标志，01申请02预扣(01记录库存明细ID没有预扣数量,02记录数量)
     *
     * @return 预扣标志
     */
    public String getBookClass() {
        return this.bookClass;
    }

    /**
     * 设置预扣标志，01申请02预扣(01记录库存明细ID没有预扣数量,02记录数量)
     *
     * @param bookClass
     *          预扣标志
     */
    public void setBookClass(String bookClass) {
        this.bookClass = bookClass;
    }

    /**
     * 获取备注
     *
     * @return 备注
     */
    public String getRemark() {
        return this.remark;
    }

    /**
     * 设置备注
     *
     * @param remark
     *          备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 获取扩展字段1
     *
     * @return 扩展字段1
     */
    public String getExtend1() {
        return this.extend1;
    }

    /**
     * 设置扩展字段1
     *
     * @param extend1
     *          扩展字段1
     */
    public void setExtend1(String extend1) {
        this.extend1 = extend1;
    }

    /**
     * 获取扩展字段2
     *
     * @return 扩展字段2
     */
    public String getExtend2() {
        return this.extend2;
    }

    /**
     * 设置扩展字段2
     *
     * @param extend2
     *          扩展字段2
     */
    public void setExtend2(String extend2) {
        this.extend2 = extend2;
    }

    /**
     * 获取扩展字段2
     *
     * @return 扩展字段2
     */
    public String getExtend3() {
        return this.extend3;
    }

    /**
     * 设置扩展字段2
     *
     * @param extend3
     *          扩展字段2
     */
    public void setExtend3(String extend3) {
        this.extend3 = extend3;
    }

    /**
     * 获取操作员编码
     *
     * @return 操作员编码
     */
    public String getOperCode() {
        return this.operCode;
    }

    /**
     * 设置操作员编码
     *
     * @param operCode
     *          操作员编码
     */
    public void setOperCode(String operCode) {
        this.operCode = operCode;
    }

    /**
     * 获取操作时间
     *
     * @return 操作时间
     */
    public Date getOperDatetime() {
        return this.operDatetime;
    }

    /**
     * 设置操作时间
     *
     * @param operDatetime
     *          操作时间
     */
    public void setOperDatetime(Date operDatetime) {
        this.operDatetime = operDatetime;
    }

//	public PhaDsStockDetailEntity getPhaDsStockDetailEntity() {
//		return phaDsStockDetailEntity;
//	}
//
//	public void setPhaDsStockDetailEntity(PhaDsStockDetailEntity phaDsStockDetailEntity) {
//		this.phaDsStockDetailEntity = phaDsStockDetailEntity;
//	}

	private BigDecimal sumBookQty;
	public BigDecimal getSumBookQty() {
		return sumBookQty;
	}

	public void setSumBookQty(BigDecimal sumBookQty) {
		this.sumBookQty = sumBookQty;
	}

	public String getStoreDeptCode() {
		return storeDeptCode;
	}

	public void setStoreDeptCode(String storeDeptCode) {
		this.storeDeptCode = storeDeptCode;
	}

	public BigDecimal getBaseMedicineQty() {
		return baseMedicineQty;
	}

	public void setBaseMedicineQty(BigDecimal baseMedicineQty) {
		this.baseMedicineQty = baseMedicineQty;
	}

	public BigDecimal getRetailUnitPrice() {
		return retailUnitPrice;
	}

	public void setRetailUnitPrice(BigDecimal retailUnitPrice) {
		this.retailUnitPrice = retailUnitPrice;
	}

	public BigDecimal getPrePurPrice() {
		return prePurPrice;
	}

	public void setPrePurPrice(BigDecimal prePurPrice) {
		this.prePurPrice = prePurPrice;
	}

	public BigDecimal getPurPrice() {
		return purPrice;
	}

	public void setPurPrice(BigDecimal purPrice) {
		this.purPrice = purPrice;
	}

	public String getAdjNo() {
		return adjNo;
	}

	public void setAdjNo(String adjNo) {
		this.adjNo = adjNo;
	}

	public String getAdjdetId() {
		return adjdetId;
	}

	public void setAdjdetId(String adjdetId) {
		this.adjdetId = adjdetId;
	}


}
